package day0726;
//可变
public class Test8 {
    public static void main(String[] args) {
        int[] a={8,  0,    1,   3,   6};

        int after=a[4];
        for (int i = 0; i < 4; i++) {//循环四次
            System.out.println(after +","+ a[i]);
            if(a[i]==after){
                System.out.println("相等");
            }
        }

        after=a[3];
        for(int i=0;i<3; i++){//循环三次
            System.out.println(after +","+ a[i]);
            if(a[i]==after){
                System.out.println("相等");
            }
        }
    }
}
